package com.vlada.studzad.util;

import com.vlada.studzad.model.Privilege;
import com.vlada.studzad.model.User;


public class Security {
	private static final String USERNAME = "user";
	private static final String PASSWORD = "secret";

	public static User authenticate(String userName, String password, Privilege privilege) {
		if (USERNAME.equals(userName) && PASSWORD.equals(password)) {
			return new User("John", "Smith", privilege);
		}
		return null;
	}
}
